package cn.schoolwow.ams.domain.response;

public class AMSResult {
    /**
     * 返回码
     */
    private int code;

    /**
     * 错误消息
     */
    private String msg;

    /**
     * 负载数据
     */
    private Object data;

    public AMSResult() {
    }

    public AMSResult(Object data) {
        this.data = data;
    }

    public AMSResult(String msg) {
        this.code = 1;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
